<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:110:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/public/../application/admin/view/facrm/apps/apps/workweixin.html";i:1676906865;s:88:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/layout/default.html";i:1676906865;s:85:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/meta.html";i:1676906865;s:87:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/script.html";i:1676906865;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <?php 
$row['values']=isset($row['values'])?json_decode($row['values'],true):[];
 ?>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="alert alert-danger-light">
            <p><i class="fa fa-info"></i> <?php echo __('企业微信配置'); ?><a target="_blank" href="https://doc.fastadmin.net/facrm">点击查看文档》</a></p>
        </div>

        <?php echo build_heading(null,FALSE); ?>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                        <input id="c-key" type="hidden" data-rule="required"  class="form-control" name="row[key]" value="<?php echo $key; ?>" readonly/>
                        <div class="row">
                            <div class=" form-group">
                                <label for="c-describe" class="control-label col-xs-12 col-sm-2"><?php echo __('企业名称'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-describe" data-rule="required" type="text" class="form-control" name="row[describe]" value="<?php echo isset($row['describe'])?$row['describe']:''; ?>"  />
                                </div>
                            </div>

                            <div class=" form-group">
                                <label for="c-corp_id" class="control-label col-xs-12 col-sm-2"><?php echo __('企业ID'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-corp_id" data-rule="required" type="text" class="form-control"
                                           name="row[values][corp_id]" value="<?php echo isset($row['values']['corp_id'])?$row['values']['corp_id']:''; ?>"  />
                                </div>
                            </div>
                            <div class=" form-group">
                                <label for="c-contacts_secret" class="control-label col-xs-12 col-sm-2"><?php echo __('通讯录Secret'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-contacts_secret" data-rule="required" type="text" class="form-control"
                                           name="row[values][contacts_secret]" value="<?php echo isset($row['values']['contacts_secret'])?$row['values']['contacts_secret']:''; ?>"  />
                                </div>
                            </div>

                            <div class=" form-group">
                                <label for="c-customer_secret" class="control-label col-xs-12 col-sm-2"><?php echo __('客户管理Secret'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-customer_secret" data-rule="required" type="text" class="form-control" name="row[values][customer_secret]"
                                           value="<?php echo isset($row['values']['customer_secret'])?$row['values']['customer_secret']:''; ?>"  />
                                </div>
                            </div>

                            <div class=" form-group">
                                <label for="c-customer_callback" class="control-label col-xs-12 col-sm-2"><?php echo __('客户管理回调URL'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-customer_callback" data-rule="required" type="text" class="form-control" name="row[values][customer_callback]"
                                           value="<?php echo isset($row['values']['customer_callback'])?$row['values']['customer_callback']:''; ?>"   />
                                </div>
                            </div>

                            <div class=" form-group">
                                <label for="c-customer_callback_token" class="control-label col-xs-12 col-sm-2"><?php echo __('客户管理回调token'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-customer_callback_token" data-rule="required" type="text" class="form-control" name="row[values][customer_callback_token]"
                                           value="<?php echo isset($row['values']['customer_callback_token'])?$row['values']['customer_callback_token']:''; ?>"   />
                                </div>
                            </div>
                            <div class=" form-group">
                                <label for="c-EncodongAESKey" class="control-label col-xs-12 col-sm-2"><?php echo __('客户EncodongAESKey'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-EncodongAESKey" data-rule="required" type="text" class="form-control" name="row[values][EncodongAESKey]"
                                           value="<?php echo isset($row['values']['EncodongAESKey'])?$row['values']['EncodongAESKey']:''; ?>"   />
                                </div>
                            </div>


                            <div class=" form-group">
                                <label for="c-agent_id" class="control-label col-xs-12 col-sm-2"><?php echo __('自建应用AgentId'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-agent_id" data-rule="required" type="text" class="form-control" name="row[values][agent_id]"
                                           value="<?php echo isset($row['values']['agent_id'])?$row['values']['agent_id']:''; ?>"   />
                                </div>
                            </div>



                            <div class=" form-group">
                                <label for="c-agent_secret" class="control-label col-xs-12 col-sm-2"><?php echo __('自建应用Secret'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-agent_secret" data-rule="required" type="text" class="form-control" name="row[values][agent_secret]"
                                           value="<?php echo isset($row['values']['agent_secret'])?$row['values']['agent_secret']:''; ?>"   />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2"><?php echo __('微信企业客户同步来源'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <?php echo build_select('row[values][source]', $sourceList,isset($row['values']['source'])?$row['values']['source']:0, ['class'=>'form-control selectpicker', 'data-rule'=>'required']); ?>
                                    <span class="text-gray">通过微信企业客户添加的客户来源</span>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="c-group_id" class="control-label col-xs-12 col-sm-2"><?php echo __('企业微信员工归属组'); ?>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <?php echo build_select('row[values][group_id]', $groupdata, isset($row['values']['group_id'])?$row['values']['group_id']:'', ['class'=>'form-control selectpicker', 'data-rule'=>'required', 'id'=>'c-group_id']); ?>
                                    <span class="help-block">同步企业微信员工会自动生成后台帐号，根据userid为对应username为唯一条件，生成的密码为改员工的手机号</span>
                                </div>
                            </div>

                            <div class="form-group layer-footer">
                                <label class="control-label col-xs-12 col-sm-2"></label>
                                <div class="col-xs-12 col-sm-8">
                                    <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('submit'); ?></button>
                                    <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
                                </div>
                            </div>
                    </form>



                </div>
            </div>

        </div>
    </div>
</div>






                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
